/* Copyright (c) 2004-2024 peigen.info. All rights reserved. */

package info.peigen.hotpot.manage.core.manage.form;

import info.peigen.hotpot.common.service.base.manage.ManageFormBase;
import info.peigen.hotpot.manage.core.enums.ManageOrgCategory;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;
import lombok.experimental.SuperBuilder;

/**
 * <b>(OrganizationCreateForm)</b>
 * 管理后台 创建"组织机构"
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2024-08-02
 */
@EqualsAndHashCode(callSuper = true)
@SuperBuilder
@Data
@NoArgsConstructor
@AllArgsConstructor
@FieldDefaults(level = AccessLevel.PRIVATE)
@Accessors(chain = true)
public class OrganizationCreateForm extends ManageFormBase {
    @ApiModelProperty(value = "父Id", position = 2)
    @Size(max = 30, message = "[父Id]超长")
    String            parentId;
    @ApiModelProperty(value = "主管Id", position = 3)
    @Size(max = 30, message = "[主管Id]超长")
    String            manageId;
    @ApiModelProperty(value = "名称", required = true, position = 4)
    @NotEmpty(message = "[名称]不得为空")
    @Size(max = 30, message = "[名称]超长")
    String            name;
    @ApiModelProperty(value = "编码", required = true, position = 5)
    @NotEmpty(message = "[编码]不得为空")
    @Size(max = 30, message = "[编码]超长")
    String            code;
    @ApiModelProperty(value = "分类", position = 6)
    ManageOrgCategory category;
    @ApiModelProperty(value = "排序序号", position = 7)
    Integer           sort;
    @ApiModelProperty(value = "扩展信息", position = 8)
    @Size(max = 1000, message = "[扩展信息]超长")
    String            ext;
}